{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>__TITLE__</title>
  <meta name="viewport" content="target-densitydpi=320,width=440,min-height:900px;user-scalable=no"/>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="msapplication-tap-highlight" content="no">
  <meta name="format-detection" content="telephone=no">
  <meta content="telephone=no" name="format-detection">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <script src="__COMMON__/js/zepto/zepto.min.js" charset="utf-8"></script>
  <script src="__STYLE__/DisShop/script/app.js" charset="utf-8"></script>
</head>
<body>
  <link rel="stylesheet" type="text/css" href="__MDRES__/MicroShow/tpl/common.css">
  <style type="text/css">
  #main {padding: 0px 15px;}
  .pic { height: 200px;}
  .box {
  	margin-top:10px;
	border: 1px solid #ccc;
	padding: 10px;
	box-shadow: 5px 5px 6px #eee;
  }
  </style>
  <div id="main">
    <volist id="vo" name="list">
  	<div class="box">
  		<div class="pic" style="background-size: cover;background-image:url( '{$vo['coverImage']}' ); background-position-x: 50%; background-position-y: 50%;background-repeat: no-repeat;"></div>
  		<p>{$vo['title']}</p>
  		<p><a class="button blue" href="{$vo['viewUrl']}">查看</a> <a del-id="{$vo['id']}" class="button btnDel">删除</a></p>
  	</div>
  	</volist>
  </div>
</body>
</html>

<script type="text/javascript">
	$(".btnDel").click(function() {
		    var sid = {$sid};
		    var scope = $(this);
			var data = {"id": $(this).attr("del-id"), "sid" : sid};
			$.post('__CONTROLLER__/deletePost', data, function(data) {
				if( !data['error'] ) {
					APP.alert("删除成功");
					scope.parents(".box").remove();
				} else {
					APP.alert(data['msg']);
				}
			});
	});
</script>